package com.ziyun.erp.modules.freightages.dao;

import com.ziyun.erp.modules.freightages.entity.SdbEctoolsRegionsEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * 
 * @author xueqz
 * @email 
 * @date 2018-08-10 15:38:32
 */
@Service("sdbEctoolsRegionsDao")
public interface SdbEctoolsRegionsDao extends BaseMapper<SdbEctoolsRegionsEntity> {

    List<SdbEctoolsRegionsEntity> queryListByParentId(@Param("regionId") int regionId);

    List<SdbEctoolsRegionsEntity> findRoots();

    List<String> queryRegionsSascade();

    /**
     * 单个信息查询
     * @param regionId
     * @return
     */
    SdbEctoolsRegionsEntity selectInfoById(@Param("regionId") String regionId);

    List<String> queryRegionsList();
}

